package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品价格改变记录对象 med_med_price_record
 * 
 * @author yangxp
 * @date 2020-08-07
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("med_med_price_record")
public class MedPriceRecord implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** $column.columnComment */
    @TableId(value = "mpr_id", type = IdType.AUTO)
    private String mprId;

    /** $column.columnComment */
    @TableId(value = "med_id", type = IdType.AUTO)
    private String medId;

    /** $column.columnComment */
    @Excel(name = "${comment}" , readConverterExp = "$column.readConverterExp()")

    private String medName;

    /** 原进价 */
    @Excel(name = "原进价")

    private BigDecimal oldCostPrice;

    /** 新进价 */
    @Excel(name = "新进价")

    private BigDecimal newCostPrice;

    /** 原售价 */
    @Excel(name = "原售价")

    private BigDecimal oldMarketPrice;

    /** 新售价 */
    @Excel(name = "新售价")

    private BigDecimal newMarketPrice;

    /** 改变量 */
    @Excel(name = "进价改变量")
    private BigDecimal costPriceChangeAmount;
    /** 改变量 */
    @Excel(name = "售价改变量")
    private BigDecimal marketPriceChangeAmount;

    /** 进价改变类型 */
    @Excel(name = "进价改变类型")
    private Integer costPriceChangeType;

    /** 售价改变类型 */
    @Excel(name = "售价改变类型")
    private Integer marketPriceChangeType;

    /** $column.columnComment */
    @Excel(name = "改变类型" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date gmtCreate;

    /** $column.columnComment */
    @Excel(name = "改变类型" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date gmtModified;

    /** $column.columnComment */

    private Integer isDeleted;
}
